package com.yunxi.dealer.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.account.pojo.AccountGroupVO;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 渠道商帐户
 * </p>
 *
 * @author 
 * @since 2019-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)

@ApiModel(value="PartnerAccount对象", description="渠道商帐户")
public class PartnerAccountVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private String accountId;

    @ApiModelProperty(value = "帐户代码")
    private String accountCode;

    @ApiModelProperty(value = "帐户名称")
    private String accountName;

    @ApiModelProperty(value = "渠道编码")
    private String partnerCode;

    @ApiModelProperty(value = "帐户类型")
    private String accountTypeCode;

    @ApiModelProperty(value = "帐户总额")
    private BigDecimal accountAmount;

    @ApiModelProperty(value = "帐户余额")
    private BigDecimal accountBalance;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "状态1启用0禁用")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "授信配置")
    private String creditId;

    @ApiModelProperty(value = "是否返利账户Y是N否")
    private String isRebate;

    @ApiModelProperty(value = "账户组code")
    private String accountGroupCode;

    @ApiModelProperty(value = "账户记录")
    private List<PartnerAccountTransRecordVO> partnerAccountTransRecordVOList = new ArrayList<>();

    @ApiModelProperty(value = "账户类型名称")
    private String accountTypeName;

    @ApiModelProperty(value = "授信额度")
    private String quota;

    @ApiModelProperty(value = "冻结资金")
    private String frozenAmount;

    @ApiModelProperty(value = "渠道商名称")
    private String  partnerName;

    // 过滤渠道类型  1 过滤 金融伙伴，银行机构
    private Integer excludeType;

    private String tenantId;
}
